# -*- coding:utf-8 -*-

from django.db import models

class News(models.Model):
    SUBJECT_CHOICES = (
        (u'br', u'Brasil'),
        (u'mu', u'Mundo'),
        (u'ne', u'Negócios'),
        (u'ci', u'Ciência'),
        (u'te', u'Tecnologia'),
        (u'en', u'Entretenimento'),
        (u'es', u'Esportes'),
    )
    title = models.CharField(max_length=200)
    subject = models.CharField(max_length=200, choices=SUBJECT_CHOICES)
    original = models.CharField(max_length=200)
    pub_date = models.DateTimeField()
    url = models.URLField(verify_exists=True)
    news_id = models.CharField(max_length=200)

class NewsArchive(models.Model):
    SUBJECT_CHOICES = (
        (u'brasil', u'Brasil'),
        (u'mundo', u'Mundo'),
        (u'economia', u'Economia'),
        (u'ciencia', u'Ciência'),
        (u'tecnologia', u'Tecnologia'),
        (u'entretenimento', u'Entretenimento'),
        (u'esportes', u'Esportes'),
    )
    title = models.CharField(max_length=200,null=True,blank=True)
    subject = models.CharField(max_length=200, choices=SUBJECT_CHOICES)
    text = models.CharField(max_length=1000)

class VectorFeatures(models.Model):
    SUBJECT_CHOICES = (
        (u'brasil', u'Brasil'),
        (u'mundo', u'Mundo'),
        (u'economia', u'Economia'),
        (u'ciencia', u'Ciência'),
        (u'tecnologia', u'Tecnologia'),
        (u'entretenimento', u'Entretenimento'),
        (u'esportes', u'Esportes'),
    )
    type = models.CharField(max_length=200, choices=SUBJECT_CHOICES,null=True,blank=True)
    feature = models.TextField()
    values = models.TextField()




    